package sisi.products;

import java.io.Serializable;
import javax.persistence.*;
import java.sql.Timestamp;


/**
 * Product.java - The persistent class for the <i>products's database table</i>. 
 * @author Pedro Gonzalez pedro@sisisoftware.it
 * @author Claudio Pelosi claudio@sisisoftware.it
 * @author SISI Software S.n.c. - www.sisisoftware.it
 * @version 1.0, 04/11/2013
 * 
 */
@Entity
@Table(name="products")
public class Product implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="PRODUCTS_ID_GENERATOR", sequenceName="PRODUCTSSEQ", allocationSize=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="PRODUCTS_ID_GENERATOR")
	private Integer id;

	private Boolean bert;

	private Integer categoryid;

	private Timestamp dtup;

	private Boolean fuel;

	private String note;

	private Boolean oil;

	private Boolean oth;

	private String partno;

	private String productname;

	private double purcprice;

	private double saleprice;

	private Boolean spare;

	private Integer supplierid;

	/**
	 * Product.java - The persistent class for the <i>products's database table</i>. 
	 * @author Pedro Gonzalez pedro@sisisoftware.it
	 * @author Claudio Pelosi claudio@sisisoftware.it
	 * @author SISI Software S.n.c. - www.sisisoftware.it
	 * @version 1.0, 04/11/2013
	 * 
	 */
	public Product() {
	}

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Boolean getBert() {
		return this.bert;
	}

	public void setBert(Boolean bert) {
		this.bert = bert;
	}

	public Integer getCategoryid() {
		return this.categoryid;
	}

	public void setCategoryid(Integer categoryid) {
		this.categoryid = categoryid;
	}

	public Timestamp getDtup() {
		return this.dtup;
	}

	public void setDtup(Timestamp dtup) {
		this.dtup = dtup;
	}

	public Boolean getFuel() {
		return this.fuel;
	}

	public void setFuel(Boolean fuel) {
		this.fuel = fuel;
	}

	public String getNote() {
		return this.note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	public Boolean getOil() {
		return this.oil;
	}

	public void setOil(Boolean oil) {
		this.oil = oil;
	}

	public Boolean getOth() {
		return this.oth;
	}

	public void setOth(Boolean oth) {
		this.oth = oth;
	}

	public String getPartno() {
		return this.partno;
	}

	public void setPartno(String partno) {
		this.partno = partno;
	}

	public String getProductname() {
		return this.productname;
	}

	public void setProductname(String productname) {
		this.productname = productname;
	}

	public double getPurcprice() {
		return this.purcprice;
	}

	public void setPurcprice(double purcprice) {
		this.purcprice = purcprice;
	}

	public double getSaleprice() {
		return this.saleprice;
	}

	public void setSaleprice(double saleprice) {
		this.saleprice = saleprice;
	}

	public Boolean getSpare() {
		return this.spare;
	}

	public void setSpare(Boolean spare) {
		this.spare = spare;
	}

	public Integer getSupplierid() {
		return this.supplierid;
	}

	public void setSupplierid(Integer supplierid) {
		this.supplierid = supplierid;
	}

}